/**
 * 公共API
 */
import { http, Method } from "@/utils/request.js";
import api from "@/config/api.js"; 

/**
 * 获取乐学院列表
 * 
 */
export function getLxyCourse(data) {
  return http.request({
    url: "/api/lxy-course/getLxyCourse",
    method: Method.GET,
	params: data,
  });
}

/**
 * 获取乐学院场地
 * 
 */
export function getsiteLxyCourse(data) {
  return http.request({
	url:'/api/lxy-site/getLxyCourse',
    method: Method.GET,
	params: data,
  });
}

/**
 * 获取乐学院场地
 * 
 */
export function getDetail(data) {
  return http.request({
	url:'/api/lxy-course/getDetail',
    method: Method.POST,
	data: data,
  });
}


/**
 * 获取场地详情
 * 
 */
export function getLxyCourseDetail(data) {
  return http.request({
	url:'/api/lxy-site/getLxyCourseDetail',
    method: Method.GET,
	params: data,
  });
}

/**
 * 预约
 * 
 */
export function placeOrder(data) {
  return http.request({
	url:'/api/lxy-course/placeOrder',
    method: Method.POST,
	data: data,
  });
}
